import { defineConfig, splitVendorChunkPlugin } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
  build: {
    minify: false,
    rollupOptions: {
      input: "./src/app.tsx",
      output: {
        entryFileNames: "[name].js",
        assetFileNames: "[name].[ext]",
      },
    },
    outDir: "./public",
    assetsDir: ".",
  },
  plugins: [react(), splitVendorChunkPlugin()],
});
